package designpattern.compement;

/**
 * TODO:类描述
 *
 * @className: Compement
 * @packageName: designpattern
 * @author: Zhuhj
 * @version: V1.0
 * @date: 2021/4/19 22:32
 */
public abstract class Compement {
    private String name;

    protected Compement(String name) {
        this.name = name;
    }

    abstract void addCompement(Compement compement);
    abstract void removeCompement(Compement compement);
    abstract void display(int deep);


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
